Replies: 1 comment
-
I think you to share what your code looks like this, because I don't quite follow what you mean. What do you have to remove |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Axum Community so I have been working on converting my old Rocket backend to Axum and have been having a blast. I noticed some weird anomaly while adding a sub request feature with Nginx into my microservice application.
I have this little piece of code that I parse into a i32 to pass along the id of the user but before I do that I have to remove the delimiter from the original request.
headers.get("X-Authentication-Id").map(|x| x.to_str())
So I use this to remove the ': ' from the header
// Remove the delimiter ': ' form the string let removed = context.to_string().replace(": ", "");
I haven't had to do this for any of the other headers, is this normal?
Beta Was this translation helpful? Give feedback.
All reactions