# Error in Http challange for Zig

**URL:** <https://forum.codecrafters.io/t/error-in-http-challange-for-zig/8333>\
**Category:** Challenges\
**Tags:** challenge:http-server\
**Created:** [April 6, 2025, 3:59pm UTC](https://forum.codecrafters.io/t/error-in-http-challange-for-zig/8333 "2025-04-06T15:59:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![WojciechChuchro](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/wojciechchuchro/32/8537_2.png) [@WojciechChuchro](https://forum.codecrafters.io/u/WojciechChuchro)\
**Post date:** [April 6, 2025, 3:59pm UTC](https://forum.codecrafters.io/t/error-in-http-challange-for-zig/8333/1 "2025-04-06T15:59:29Z")

</div>

```auto
var iter = std.mem.split(u8, input, " ");

```

Regular split is deprecated.

There is also an error in build.zig.zon file:

```auto
.name = .codecrafters_http_server

```

error: expected string literal

So it should be wrapped in double quotes.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [April 6, 2025, 4:06pm UTC](https://forum.codecrafters.io/t/error-in-http-challange-for-zig/8333/3 "2025-04-06T16:06:31Z")

</div>

Hey @WojciechChuchro, thanks for highlighting the issues!

Could you confirm which version of Zig you’re using?

We’re currently using **Zig 0.14** , which introduced some breaking changes. For example:

`.name = "codecrafters_http_server"` will now throw an error:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/e/e47689ec70b2420cfa5aabbe4e2b9f660e36e8f6.png)

> `var iter = std.mem.split(u8, input, " ");`  
> Regular split is deprecated.

Would you mind sharing more details for `split`?

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [April 13, 2025, 11:04pm UTC](https://forum.codecrafters.io/t/error-in-http-challange-for-zig/8333/4 "2025-04-13T23:04:25Z")

</div>

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [April 18, 2025, 11:05pm UTC](https://forum.codecrafters.io/t/error-in-http-challange-for-zig/8333/5 "2025-04-18T23:05:02Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
