Commits

justin  committed 23a5122

no 304 on IMS if lastmod undefined

  • Participants
  • Parent commits 63dbc0c

Comments (0)

Files changed (1)

File src/webmachine_decision_core.erl

     ReqDate = get_header_val("if-modified-since"),    
     ReqErlDate = webmachine_util:convert_request_date(ReqDate),
     ResErlDate = resource_call(last_modified),
-    decision_test(ResErlDate > ReqErlDate,
+    decision_test(ResErlDate =:= undefined orelse ResErlDate > ReqErlDate,
                   true, v3m16, 304);
 %% "POST?"
 decision(v3m5) ->