Skip to content

Commit

Permalink
fix: changes mime type for fetching between to application/x-jsonl. see
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 authored Oct 31, 2023
1 parent c74384d commit e57d038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/web/__snapshots__/web.snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Content-Type: text/html
HTTP/1.1 200 OK
Connection: close
Content-Security-Policy: default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' gravatar.com data:; manifest-src 'self'; connect-src 'self' api.github.com;
Content-Type: application/ld+json; charset=UTF-8
Content-Type: application/x-jsonl; charset=UTF-8

{"m":"INFO Testing stdout logs...","ts":1589396137772,"id":466600245,"l":"info","s":"stdout"}
{"m":"INFO Testing stderr logs...","ts":1589396197772,"id":1101501603,"l":"info","s":"stderr"}
Expand Down
2 changes: 1 addition & 1 deletion internal/web/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (h *handler) downloadLogs(w http.ResponseWriter, r *http.Request) {
}

func (h *handler) fetchLogsBetweenDates(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/ld+json; charset=UTF-8")
w.Header().Set("Content-Type", "application/x-jsonl; charset=UTF-8")

from, _ := time.Parse(time.RFC3339, r.URL.Query().Get("from"))
to, _ := time.Parse(time.RFC3339, r.URL.Query().Get("to"))
Expand Down

0 comments on commit e57d038

Please sign in to comment.