Skip to content

Commit

Permalink
Merge pull request #515 from Mashape/fix/mashape-analytics
Browse files Browse the repository at this point in the history
[fix/alf-serializer] invalid 'url' property in ALF
  • Loading branch information
thibaultcha committed Aug 27, 2015
2 parents 7f7f82d + 311388d commit 61d4227
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kong/plugins/log_serializers/alf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function _M.serialize_entry(ngx)
time = alf_time,
request = {
method = ngx.req.get_method(),
url = ngx.var.scheme.."://"..ngx.var.host..ngx.var.uri,
url = ngx.var.scheme.."://"..ngx.var.host..ngx.var.request_uri,
httpVersion = "HTTP/"..ngx.req.http_version(),
queryString = dic_to_array(ngx.req.get_uri_args()),
headers = alf_req_headers_arr,
Expand Down
4 changes: 2 additions & 2 deletions spec/plugins/mashape-analytics/fixtures/requests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ return {
var = {
scheme = "http",
host = "mockbin.com",
uri = "/request",
request_uri = "/request",
request_length = 123,
body_bytes_sent = 934,
remote_addr = "127.0.0.1",
Expand Down Expand Up @@ -109,7 +109,7 @@ return {
var = {
scheme = "http",
host = "mockbin.com",
uri = "/request",
request_uri = "/request",
request_length = 123,
body_bytes_sent = 934,
remote_addr = "127.0.0.1",
Expand Down

0 comments on commit 61d4227

Please sign in to comment.