Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Modifying the request URI in a dredd hook doesn't work #186

@jolleon

Description

@jolleon

I'm trying to write a dredd before hook so that my DELETE action can target the resource that was created by a previous POST.

I've been following the doc here, but updating transaction.request.uri doesn't seem to work (BTW the doc is outdated and refers to url while the field seems to be uri - I've tried setting both to a different value without success). The updated url does show up on the report that dredd uploads to apiary, but my server is still receiving the old URL.

For the record I'm able to successfully update the request body and headers in a before hook, I think the bug is only in the URL/URI.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions