Skip to content

Commit

Permalink
fix(blocks): add trailing slash on Create() to reduce 307 (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
parkedwards authored Oct 22, 2024
1 parent a7d9465 commit f2f4ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/block_documents.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (c *BlockDocumentClient) Create(ctx context.Context, payload api.BlockDocum
return nil, fmt.Errorf("failed to encode create payload data: %w", err)
}

req, err := http.NewRequestWithContext(ctx, http.MethodPost, c.routePrefix, &buf)
req, err := http.NewRequestWithContext(ctx, http.MethodPost, c.routePrefix+"/", &buf)
if err != nil {
return nil, fmt.Errorf("error creating request: %w", err)
}
Expand Down

0 comments on commit f2f4ccd

Please sign in to comment.