Skip to content

POST parameters are not decoded properly #39

Open
@knazarov

Description

@knazarov

I'm using req.param() to extract POST request params, but it's not working at all.

Here's what I do:

echo '{"text": "Hello **world**!"}' | curl -d @- http://localhost:8080/

Then in tarantool I print the request as follows:

print(yaml.encode(req:param()))

Then I get this:

---
'{"text": "Hello **world**!"}':
...

If I try to get the "text" parameter using req:param("text"), it returns nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions