|
| 1 | +--- |
| 2 | +title: "Dev Proxy v3.1.0 with fixed HAR encoding and smarter plugin initialization" |
| 3 | +description: "Dev Proxy v3.1.0 fixes HAR export encoding to properly handle character sets, and stops plugins from unnecessarily initializing when running CLI subcommands." |
| 4 | +date: 2026-07-01 |
| 5 | +author: "Waldek Mastykarz, Garry Trinder" |
| 6 | +tags: ["release"] |
| 7 | +image: "/blog/images/v3-1-0.png" |
| 8 | +--- |
| 9 | + |
| 10 | +We're happy to announce the release of **Dev Proxy v3.1.0!** This release focuses on reliability - fixing how Dev Proxy exports HAR files and making CLI subcommands snappier by preventing plugins from running when they shouldn't. |
| 11 | + |
| 12 | +### **In this version:** |
| 13 | + |
| 14 | +- Fixed HAR response body encoding |
| 15 | +- Smarter plugin initialization for CLI subcommands |
| 16 | +- Updated dependencies |
| 17 | + |
| 18 | +--- |
| 19 | + |
| 20 | +### **Fixed HAR response body encoding** |
| 21 | + |
| 22 | +If you've ever exported a HAR file from Dev Proxy and noticed garbled or incorrectly encoded response bodies, this one's for you. |
| 23 | + |
| 24 | +**What changed:** |
| 25 | + |
| 26 | +Dev Proxy now properly reads the `Content-Type` charset when decoding request and response bodies. We've introduced a shared decoding helper that uses the charset specified in the response headers, falling back to strict UTF-8, then Latin-1 for binary-safe handling. The **HarGeneratorPlugin** and **DevToolsPlugin** both use this shared helper now, and HAR size fields correctly report raw byte lengths instead of string lengths. |
| 27 | + |
| 28 | +**Why this matters:** |
| 29 | + |
| 30 | +APIs that return non-UTF-8 content (like ISO-8859-1 or Windows-1252 encoded responses) would previously produce corrupted HAR entries. You'd see broken characters in the exported file, making it unreliable for debugging or replaying. Now HAR exports faithfully represent the actual response data regardless of encoding, giving you reliable captures you can trust when troubleshooting API integrations. |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +### **Smarter plugin initialization for CLI subcommands** |
| 35 | + |
| 36 | +Running `devproxy jwt create` with a `DevToolsPlugin` in your config? Previously, that would pop open a browser window. Not anymore. |
| 37 | + |
| 38 | +**What changed:** |
| 39 | + |
| 40 | +Plugins now know whether Dev Proxy is running as a proxy or executing a CLI subcommand. When you run commands like `devproxy jwt create` or `devproxy config validate`, plugins that only make sense during proxy operation (like **DevToolsPlugin** opening a browser or **OpenAITelemetryPlugin** starting telemetry exporters) skip their initialization entirely. |
| 41 | + |
| 42 | +**Why this matters:** |
| 43 | + |
| 44 | +No more random browser windows appearing when you just want to generate a JWT token. CLI subcommands now feel instant and focused, without the overhead of initializing plugins that aren't relevant to what you're doing. If you're building custom plugins, the new `IsProxyCommand` flag on `InitArgs` lets you implement the same behavior - it defaults to `true` for backwards compatibility, so existing plugins continue working unchanged. |
| 45 | + |
| 46 | +--- |
| 47 | + |
| 48 | +## Dev Proxy Toolkit |
| 49 | + |
| 50 | +[Dev Proxy Toolkit](https://marketplace.visualstudio.com/items?itemName=garrytrinder.dev-proxy-toolkit) is an extension that makes it easier to work with Dev Proxy from within Visual Studio Code. Alongside the new release of Dev Proxy, we've also released a new version of the toolkit, v1.32.0. |
| 51 | + |
| 52 | +In this version, we've: |
| 53 | + |
| 54 | +- Updated all JSON snippets to use v3.1.0 schemas |
| 55 | + |
| 56 | +Checkout out the [changelog](https://marketplace.visualstudio.com/items/garrytrinder.dev-proxy-toolkit/changelog) for more information on changes and bug fixes. |
| 57 | + |
| 58 | +--- |
| 59 | + |
| 60 | +### **Why upgrade to v3.1.0?** |
| 61 | + |
| 62 | +✅ **Reliable HAR exports** - response bodies are decoded correctly regardless of charset |
| 63 | +✅ **Faster CLI commands** - no more unnecessary plugin initialization or stray browser windows |
| 64 | +✅ **Updated dependencies** - latest security patches and performance improvements across the board |
| 65 | + |
| 66 | +### **Try it now** |
| 67 | + |
| 68 | +Download **Dev Proxy v3.1.0** today and build better API-connected applications with confidence! |
| 69 | + |
| 70 | +Got feedback or ideas? [Join us](https://github.com/dotnet/dev-proxy/discussions) and be part of the conversation. |
0 commit comments