[
https://issues.apache.org/jira/browse/HTRACE-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14502176#comment-14502176
]
Colin Patrick McCabe commented on HTRACE-149:
---------------------------------------------
bq. Is the removal of ServeHTTP intentionally part of this patch? What was
resource used for originally?
The resource directory originally had the HTML and javascript files that the
bundler created. They were removed in HTRACE-122, but there was still a bit of
deadcode left over...
The new way of handling regular HTTP requests is this:
{code}
rsv.lg.Infof("Serving static files from %s\n.", webdir)
r.PathPrefix("/").Handler(http.FileServer(http.Dir(webdir))).Methods("GET")
{code}
Thanks for +1, committed
> htraced: remove unused resource/ directory
> ------------------------------------------
>
> Key: HTRACE-149
> URL: https://issues.apache.org/jira/browse/HTRACE-149
> Project: HTrace
> Issue Type: Improvement
> Affects Versions: 3.2.0
> Reporter: Colin Patrick McCabe
> Assignee: Colin Patrick McCabe
> Fix For: 3.2.0
>
> Attachments: HTRACE-149.001.patch
>
>
> htraced: remove the now unused resource/ directory
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)