Repository: graphql-rust/juniper (language: rust)

Issue:
operation_name not being set in juniper_hyper library
**Describe the bug**
The code block https://github.com/graphql-rust/juniper/blob/a648dd727519991c2e3c762af16eac027b2acec2/juniper_hyper/src/lib.rs#L225-L229
seems to be missing a statement where operation_name would be set to `Some(value)`.

**To Reproduce**
Steps to reproduce the behavior:
Just read through code. See the variable is defined a `None` and nowhere is being set.


Discussion / hints:
You're right, looks like a bug / omission. Can you put up a PR with a test?
Sorry. I've lost the context for this repo. It's been too long. We can close it if this doesn't bother anyone else.

Fix patch:
diff --git a/juniper_actix/CHANGELOG.md b/juniper_actix/CHANGELOG.md
index d403d4da5..84b533b8a 100644
--- a/juniper_actix/CHANGELOG.md
+++ b/juniper_actix/CHANGELOG.md
@@ -14,7 +14,13 @@ All user visible changes to `juniper_actix` crate will be documented in this fil
 - Switched to 0.16 version of [`juniper` crate].
 - Switched to 0.4 version of [`juniper_graphql_ws` crate].
 
+### Fixed
+
+- `operationName` not being set. ([#1187], [#1169])
+
 [#1034]: /../../pull/1034
+[#1169]: /../../issues/1169
+[#1187]: /../../pull/1187
 
 
 
diff --git a/juniper_hyper/src/lib.rs b/juniper_hyper/src/lib.rs
index 02b48eb7f..074cf8506 100644
--- a/juniper_hyper/src/lib.rs
+++ b/juniper_hyper/src/lib.rs
@@ -212,7 +212,7 @@ where
     S: ScalarValue,
 {
     let mut query = None;
-    let operation_name = None;
+    let mut operation_name = None;
     let mut variables = None;
     for (key, value) in form_urlencoded::parse(input.as_bytes()).into_owned() {
         match key.as_ref() {
@@ -226,6 +226,7 @@ where
                 if operation_name.is_some() {
                     return Err(invalid_err("operationName"));
                 }
+                operation_name = Some(value)
             }
             "variables" => {
                 if variables.is_some() {


Test patch: