Updated web template handling of no template

This commit is contained in:
2019-07-08 11:12:34 +08:00
parent b518ba4ca6
commit 20d3045ce3
7 changed files with 15 additions and 6 deletions

View File

@@ -422,7 +422,7 @@ func (tapit *Tapit) webTemplateRouteHandler(w http.ResponseWriter, r *http.Reque
newVisit.BodyContent = string(requestBody)
rawReqBytes, err := httputil.DumpRequest(r, true)
if err == nil {
newVisit.RawRequest = string(rawReqBytes)
newVisit.RawRequest = string(rawReqBytes) + string(requestBody)
}
// Update visited status