Skip to content

Commit

Permalink
addressing misplaced <html> tag in swagger template (#660) (#662)
Browse files Browse the repository at this point in the history
Addressing #660
  • Loading branch information
SaculRennorb committed Sep 26, 2023
1 parent 51d6d8d commit 6baeae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poem-openapi/src/ui/swagger_ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const SWAGGER_UI_TEMPLATE: &str = r#"
<style charset="UTF-8">{:style}</style>
<script charset="UTF-8">{:script}</script>
</head>
</html>
<body>
<div id="ui"></div>
Expand Down Expand Up @@ -41,6 +40,7 @@ const SWAGGER_UI_TEMPLATE: &str = r#"
</script>
</body>
</html>
"#;

pub(crate) fn create_html(document: &str) -> String {
Expand Down

0 comments on commit 6baeae8

Please sign in to comment.