summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
Diffstat (limited to 'methods')
-rw-r--r--methods/basehttp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/basehttp.cc b/methods/basehttp.cc
index 04c194ad9..fd5934b40 100644
--- a/methods/basehttp.cc
+++ b/methods/basehttp.cc
@@ -232,7 +232,7 @@ bool RequestState::HeaderLine(string const &Line) /*{{{*/
if (stringcasecmp(Tag,"Last-Modified:") == 0)
{
- if (RFC1123StrToTime(Val.c_str(), Date) == false)
+ if (RFC1123StrToTime(Val, Date) == false)
return _error->Error(_("Unknown date format"));
return true;
}