[
https://issues.apache.org/jira/browse/CXF-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689577#action_12689577
]
Sergey Beryozkin commented on CXF-2134:
---------------------------------------
fix will go shortly - though the format is created slightly differently
{code}
public static SimpleDateFormat getHttpDateFormat() {
SimpleDateFormat dateFormat =
new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
TimeZone tZone = TimeZone.getTimeZone("GMT");
dateFormat.setTimeZone(tZone);
return dateFormat;
}
{code}
I reckon it's correct, right ?
> ResponseBuilder implementation sets date headers with Date.toString() method
> ----------------------------------------------------------------------------
>
> Key: CXF-2134
> URL: https://issues.apache.org/jira/browse/CXF-2134
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2
> Reporter: Roman Kalukiewicz
>
> {{expires()}} and {{lastModified()}} methods of {{ResponseBuilderImpl}} sets
> response headers with {{Date.toString()}} method, while they should obey time
> format specified by RFC1123.
> This means that the date should be formated like
> {code}
> new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz",
> Locale.ENGLISH).format(expires);
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.