Skip to content

Commit

Permalink
feat: merge pull request #5 from julianooi/main
Browse files Browse the repository at this point in the history
fix locationWithContextErr always true
  • Loading branch information
angelofallars authored Nov 27, 2023
2 parents cd6d03d + 9703a2d commit 2a025ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion response.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (r Response) Clone() Response {

// Write applies the defined HTMX headers to a given response writer.
func (r Response) Write(w http.ResponseWriter) error {
if r.locationWithContextErr != nil {
if len(r.locationWithContextErr) > 0 {
return errors.Join(r.locationWithContextErr...)
}

Expand Down

0 comments on commit 2a025ab

Please sign in to comment.