Merge pull request #54 from pedronasser/feature-52

added env REQUEST_URL
This commit is contained in:
Travis Reeder
2016-08-15 19:38:44 -07:00
committed by GitHub
3 changed files with 14 additions and 11 deletions

View File

@@ -110,11 +110,12 @@ func handleRunner(c *gin.Context) {
for _, el := range routes {
if el.Path == route {
run := runner.New(&runner.Config{
Ctx: c,
Route: el,
Payload: string(payload),
Timeout: 30 * time.Second,
ID: reqID,
Ctx: c,
Route: el,
Payload: string(payload),
Timeout: 30 * time.Second,
ID: reqID,
RequestURL: c.Request.URL.String(),
})
if err := run.Run(); err != nil {