Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
valueがダブルクォートされているのでTrim
Browse files Browse the repository at this point in the history
  • Loading branch information
acidlemon committed Nov 25, 2023
1 parent 57af668 commit 30354bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/go/user_handler.go
Expand Up @@ -96,6 +96,7 @@ func getIconHandler(c echo.Context) error {
username := c.Param("username")

ifNoneMatchValue := c.Request().Header.Get("If-None-Match")
ifNoneMatchValue = strings.Trim(ifNoneMatchValue, "\"")
log.Println("If-None-Match: ", ifNoneMatchValue)

tx, err := dbConn.BeginTxx(ctx, nil)
Expand Down

0 comments on commit 30354bc

Please sign in to comment.