Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use current timestamp when unset in rest api #2193

Closed
alrevuelta opened this issue Nov 7, 2023 · 1 comment
Closed

feat: use current timestamp when unset in rest api #2193

alrevuelta opened this issue Nov 7, 2023 · 1 comment
Labels
E:3.2: Basic DoS protection in production See https://github.com/waku-org/pm/issues/70 for details

Comments

@alrevuelta
Copy link
Contributor

When publishing a message via the REST API without setting a timestamp, default to the current one instead of 0.

 curl -X POST "http://127.0.0.1:8645/relay/v1/auto/messages" \
 -H "content-type: application/json" \
 -d '{"payload":"XQ==","contentTopic":"/my-app/2/chatroom-1/proto"}'
@chair28980
Copy link
Contributor

Fixed in #2261

@github-project-automation github-project-automation bot moved this from To Do to Done in Waku Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E:3.2: Basic DoS protection in production See https://github.com/waku-org/pm/issues/70 for details
Projects
Archived in project
Development

No branches or pull requests

3 participants