From: Simon Ruderich Date: Fri, 2 Aug 2019 18:53:43 +0000 (+0200) Subject: nsscash: main_test: fix Last-Modified/If-Modified-Since headers X-Git-Tag: 0.1~26 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=d71bfc62c2a337523114389bba86b58049961d19;hp=d71bfc62c2a337523114389bba86b58049961d19;p=nsscash%2Fnsscash.git nsscash: main_test: fix Last-Modified/If-Modified-Since headers http.TimeFormat requires a time in UTC for a proper Last-Modified header. Previously, the time was in CEST (my local timezone) which caused all Last-Modified headers to have an offset of two hours. This also hid a bug in the If-Modified-Since header handling: The last change time must be truncated to seconds as the If-Modified-Since header has only a second precision. These bugs did not affect the current test cases. However, it affects the test case which will be added in the next commit. ---