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

Adding parameter type to HeaderParam example. Closes #872 #878

Merged
merged 2 commits into from
Nov 12, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vraptor-site/content/en/docs/controllers-rest.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@

~~~
#!java
public void profile(@HeaderParam("X-Auth-User") username) { ... }
public void profile(@HeaderParam("X-Auth-User") String username) { ... }
~~~

**Warning**: In this example, if you had a request parameter named `username`
Expand Down
2 changes: 1 addition & 1 deletion vraptor-site/content/pt/docs/controllers-rest.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@

~~~
#!java
public void profile(@HeaderParam("X-Auth-User") username) { ... }
public void profile(@HeaderParam("X-Auth-User") String username) { ... }
~~~

*Atenção*: No exemplo acima, se você tiver paramêtro com a chave `username`
Expand Down